<template>
	<view class="tools-wrapper">
		<view class="comp-list">
			<view class="label-title label-title-text">必须绑定按钮</view>
			<view class="comp-list-item flexRowNoWrapBetween" hover-class="comp-list-item-active" @click="gotoUserInfo">
				<view class="comp-list-item-title">授权获取用户信息&手机号</view>
				<uni-icons type="arrowright" size="20" color="#999999"></uni-icons>
			</view>
			<view class="label-title label-title-text">无须绑定按钮</view>
			<view class="comp-list-item flexRowNoWrapBetween" hover-class="comp-list-item-active" @click="gotoRunData">
				<view class="comp-list-item-title">授权获取用户微信步数</view>
				<uni-icons type="arrowright" size="20" color="#999999"></uni-icons>
			</view>
			<view class="comp-list-item flexRowNoWrapBetween" hover-class="comp-list-item-active" @click="gotoLocation">
				<view class="comp-list-item-title">授权获取用户定位</view>
				<uni-icons type="arrowright" size="20" color="#999999"></uni-icons>
			</view>
			<view class="comp-list-item flexRowNoWrapBetween" hover-class="comp-list-item-active" @click="gotoPhoto">
				<view class="comp-list-item-title">从相册选图或拍照</view>
				<uni-icons type="arrowright" size="20" color="#999999"></uni-icons>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
			}
		},
		onLoad() {

		},
		methods: {
			gotoUserInfo() {
				uni.navigateTo({
					url: './auth/userInfo'
				})
			},
			gotoRunData() {
				uni.navigateTo({
					url: './auth/runData'
				})
			},
			gotoLocation() {
				uni.navigateTo({
					url: './auth/location'
				})
			},
			gotoPhoto() {
				uni.navigateTo({
					url: './auth/photo'
				})
			}
		}
	}
</script>

<style lang="scss">
	.tools-wrapper {
		padding: 0 80rpx;

		.logo {
			height: 100rpx;
			width: 100rpx;
			border-radius: 12rpx;
		}

		.title {
			font-size: 36rpx;
			color: #333333;
			margin-left: 30rpx;
		}
		
		.label-title {
			width: 100%;
			margin-bottom: 60rpx;
			border-bottom: solid 1px #8f8f94;
		}
		
		.label-title-text {
			color: #8f8f94;
			font-size: 41rpx;
		}
		
		.comp-list{
			// margin-top: 100rpx;
			.comp-list-item {
				background: #f7f8fa;
				border-radius: 99px;
				-webkit-transition: background 0.3s;
				transition: background 0.3s;
				padding: 10rpx 24rpx;
				margin-bottom: 50rpx;
			}
			
			.comp-list-item-active {
				background-color: #e7e5e7;
			}
			
			.comp-list-item-title {
				font-size: 14px;
				font-weight: bold;
				padding-left: 18rpx;
			}
		}
		

	}
</style>
